import { SearchParam, SearchType } from '@/models/searchParams'
import { RoleLevelOptions } from '@/constant/options'
export const searchOptions: Array<SearchParam> = [
  {
    label: '名称',
    key: 'name',
    type: SearchType.Input,
    value: '',
    placeholder: '请输入角色名称',
    default: true
  },
  {
    label: '标识',
    key: 'code',
    type: SearchType.Input,
    value: '',
    placeholder: '请输入角色标识'
  },
  {
    label: '层级',
    key: 'level',
    type: SearchType.Select,
    value: '',
    options: RoleLevelOptions,
    placeholder: '请选择角色层级'
  },
  {
    label: '创建时间',
    key: 'createdTime',
    keys: ['createdTimeStart', 'createdTimeEnd'],
    type: SearchType.DateTimeRange,
    value: []
  }
]
